git pull
sh gradlew releaseToTar
cd distributions
mv Guardian-1.0.tgz ../../app
cd ../../app
tar -xvf Guardian-1.0.tgz
pid=$(ps -ef | grep SLAVE |grep tools.jar | grep -v grep | awk '{print $2}')
kill -9 $pid
cd bin
sh slave.sh
sleep 1